package com.housediyadmin.events.goodsEvents
{
	import com.housediyadmin.vo.Goods;
	
	import flash.events.Event;
	
	/**
	 * 
	 * @author yanghanbing
	 * 2010/12/17
	 */	
	public class EditGoodsEvent extends Event
	{
		public static const EDIT_GOODS:String = "editGoods";
		
		public var goods:Goods;
		public var typeIds:Array;
		public var fittingIds:Array;
		
		/**
		 *  修改一个Goods
		 * @param type：必选参数，ADD_GOODS
		 * @param goods：Goods 必选参数，一个Goods对象，不能忽略goodsID，
		 * @param typeIds：Array 必选参数，一个typeId的集合，用来返回信息
		 * @param fittingIds：Array 必选参数，一个fittingId的集合，可为空。
		 * 
		 */
		public function EditGoodsEvent(type:String, goods:Goods, typeIds:Array, fittingIds:Array = null)
		{
			super(type);
			this.goods = goods;
			this.typeIds = typeIds;
			this.fittingIds = fittingIds;
		}
		
		override public function clone():Event
		{
			return new EditGoodsEvent(type, goods, typeIds, fittingIds);
		}
	}
}